﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Common
{
    public class DatabaseConnStr
    {
        #region 常量

        public const string SQLSERVER_FRAMAT = "Server={0};database={1};uid={2};pwd={3};";
        public const string ORACLE_FRAMAT = @"Data Source=(DESCRIPTION =(ADDRESS = (PROTOCOL = TCP)(HOST = {0})(PORT = {4}))(CONNECT_DATA =(SID = {5})(SERVER = DEDICATED)(SERVICE_NAME = {1})));User Id={2};Password={3};";
        public const string ACCESS_FRAMAT = "{0}|{1}|{2}";
        public const string MYSQL_FRAMAT = "Server={0};port={4};database={1};uid={2};pwd={3};";
        public const string EXCEL_FRAMAT = ACCESS_FRAMAT;
        public const string TXT_FRAMAT = ACCESS_FRAMAT;

        #endregion
    }
}
